//
//  ViewController.m
//  QuPaiYunDemo
//
//  Created by 占益民 on 2018/3/28.
//  Copyright © 2018年 占益民. All rights reserved.
//

#import "ViewController.h"
#import "DeviceInfo.h"
#import <AliyunVideoSDKPro/AliyunVideoSDKPro.h>
@interface ViewController ()

@property(nonatomic,strong) AliyunIRecorder * recorder;
@property(nonatomic,strong) UIView * preview;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    _recorder = [[AliyunIRecorder alloc] initWithDelegate:self videoSize:CGSizeMake(100, 100)];
    _recorder.preview = self.preview;
    NSLog(@"%@",[DeviceInfo getDeviceFreeDiskSpaceInByte]);    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - 懒加载
-(UIView *)preview{
    if(!_preview){
        _preview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
        _preview.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.5];
    }
    return _preview;
        
}


@end
